import Mock from 'mockjs'

// 获取禁用启用数据字典
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/dict/data/type/sys_normal_disable', 'get', () => {
  return {
    code: 200,
    msg: '查询成功',
    data: [
      {
        dictValue: '0',
        listClass: 'primary',
        '@type': 'com.sjgtw.cloud.system.entity.SysDictData',
        dictSort: 1,
        remark: '正常状态',
        params: {},
        dictType: 'sys_normal_disable',
        dictLabel: '开启',
        createBy: 'admin',
        default: true,
        isDefault: 'Y',
        cssClass: '',
        createTime: '1617104422000',
        dictCode: 6,
        status: '0',
      },
      {
        dictValue: '1',
        listClass: 'danger',
        '@type': 'com.sjgtw.cloud.system.entity.SysDictData',
        dictSort: 2,
        remark: '停用状态',
        params: {},
        dictType: 'sys_normal_disable',
        dictLabel: '停用',
        createBy: 'admin',
        default: false,
        isDefault: 'N',
        cssClass: '',
        createTime: '1617104422000',
        dictCode: 7,
        status: '0',
      },
    ],
    ok: true,
  }
})
// 获取性别
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/dict/data/type/sys_user_sex', 'get', () => {
  return {
    msg: '操作成功',
    code: 200,
    data: [
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:22',
        updateBy: null,
        updateTime: null,
        remark: '性别男',
        params: {},
        dictCode: 1,
        dictSort: 1,
        dictLabel: '男',
        dictValue: '0',
        dictType: 'sys_user_sex',
        cssClass: '',
        listClass: '',
        isDefault: 'Y',
        status: '0',
        default: true,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:22',
        updateBy: null,
        updateTime: null,
        remark: '性别女',
        params: {},
        dictCode: 2,
        dictSort: 2,
        dictLabel: '女',
        dictValue: '1',
        dictType: 'sys_user_sex',
        cssClass: '',
        listClass: '',
        isDefault: 'N',
        status: '0',
        default: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:22',
        updateBy: null,
        updateTime: null,
        remark: '性别未知',
        params: {},
        dictCode: 3,
        dictSort: 3,
        dictLabel: '未知',
        dictValue: '2',
        dictType: 'sys_user_sex',
        cssClass: '',
        listClass: '',
        isDefault: 'N',
        status: '0',
        default: false,
      },
    ],
  }
})
// 获取角色
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/user/', 'get', () => {
  return {
    msg: '操作成功',
    code: 200,
    roles: [
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-08-19 16:39:48',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 24,
        roleName: 'SSO子系统(普元damp主数据)角色',
        roleKey: 'sso-subs-pydamp',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-08-31 09:59:54',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 25,
        roleName: 'SSO子系统(普元DGS元数据)角色',
        roleKey: 'sso-subs-pydgs',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-08-31 10:02:27',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 26,
        roleName: 'SSO子系统(普元DQMS数据质量)角色',
        roleKey: 'sso-subs-pydqms',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-08-31 10:03:25',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 27,
        roleName: 'SSO子系统(普元DSM数据标准)角色',
        roleKey: 'sso-sbus-pydsm',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-08-31 10:04:10',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 28,
        roleName: 'SSO子系统(普元DCC数据资源目录)角色',
        roleKey: 'sso-subs-pydcc',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-09-06 09:45:10',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 33,
        roleName: 'SSO子系统(低开工具)角色',
        roleKey: 'sso-subs-dkgj',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-10-10 17:17:22',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 34,
        roleName: 'SSO子系统(星环TDS)角色',
        roleKey: 'sso-subs-xhtds',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-10-16 14:09:05',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 35,
        roleName: '经营预测模型',
        roleKey: 'jingyingyucemoxing',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-11-10 09:17:06',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 37,
        roleName: 'SSO子系统(美林AI)角色',
        roleKey: 'sso-subs-mlai',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-11-10 09:18:05',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 38,
        roleName: 'SSO子系统(美林BI)角色',
        roleKey: 'sso-subs-mlbi',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2021-11-25 19:08:31',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 18,
        roleName: 'SSO子系统(督办)角色',
        roleKey: 'sso-subs-db',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: false,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2021-11-24 19:23:20',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 16,
        roleName: 'SSO所有子系统角色',
        roleKey: 'sso-subs-all',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: false,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2023-06-27 14:30:18',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 41,
        roleName: 'SSO子系统（数据治理）角色',
        roleKey: 'sso-subs-dg',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2021-11-24 19:26:01',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 17,
        roleName: 'SSO子系统(合同)角色',
        roleKey: 'sso-subs-ht',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: false,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2021-11-25 19:08:59',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 19,
        roleName: 'SSO子系统(BI)角色',
        roleKey: 'sso-subs-bi',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: false,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2021-11-25 19:09:10',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 20,
        roleName: 'SSO子系统(内控)角色',
        roleKey: 'sso-subs-nk',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: false,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2021-12-02 18:59:35',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 21,
        roleName: 'SSO子系统(文件补录)角色',
        roleKey: 'sso-subs-fd',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-04-27 16:39:32',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 23,
        roleName: 'SSO子系统(绩效)角色',
        roleKey: 'sso-subs-jx',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-09-01 18:19:31',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 29,
        roleName: 'SSO子系统(绩效考核)角色',
        roleKey: 'sso-subs-jxkh',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-09-01 18:20:47',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 31,
        roleName: 'SSO子系统(数据填报)角色',
        roleKey: 'sso-subs-sjtb',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-12-06 10:30:06',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 39,
        roleName: 'SSO子系统(星环TDH)角色',
        roleKey: 'sso-subs-xhtdh',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-10-28 17:35:29',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 36,
        roleName: ' SSO子系统(数据治理)角色',
        roleKey: 'sso-subs-sjzl',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-09-01 18:20:16',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 30,
        roleName: 'SSO子系统(七项费用)角色',
        roleKey: 'sso-subs-qxfy',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2022-09-01 18:21:33',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 32,
        roleName: 'SSO子系统(日程管理)角色',
        roleKey: 'sso-subs-rcgl',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2023-05-09 09:46:03',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        roleId: 40,
        roleName: 'SSO子系统(帆软)角色',
        roleKey: 'sso-subs-fanruan',
        roleSort: '0',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: null,
        createTime: '2021-04-15 07:38:36',
        updateBy: null,
        updateTime: null,
        remark:
          '管理者角色（同时也是一个执行者）：是整体系统最高权限管理账号，该角色下用户负责监控和督促合同预警开始后，预警流程的按时办结；可查看到所有的数据信息及所有的系统菜单',
        params: {},
        roleId: 8,
        roleName: '超级管理员-用户',
        roleKey: 'admin-user',
        roleSort: '1',
        dataScope: '1',
        menuCheckStrictly: true,
        deptCheckStrictly: true,
        status: '0',
        delFlag: '0',
        flag: false,
        menuIds: null,
        deptIds: null,
        admin: false,
      },
    ],
    posts: [
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:20',
        updateBy: null,
        updateTime: null,
        remark: '',
        params: {},
        postId: 1,
        postCode: 'ceo',
        postName: '董事长',
        postSort: '1',
        status: '0',
        flag: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:20',
        updateBy: null,
        updateTime: null,
        remark: '',
        params: {},
        postId: 2,
        postCode: 'se',
        postName: '项目经理',
        postSort: '2',
        status: '0',
        flag: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:20',
        updateBy: null,
        updateTime: null,
        remark: '',
        params: {},
        postId: 3,
        postCode: 'hr',
        postName: '人力资源',
        postSort: '3',
        status: '0',
        flag: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:20',
        updateBy: null,
        updateTime: null,
        remark: '',
        params: {},
        postId: 4,
        postCode: 'user',
        postName: '普通员工',
        postSort: '4',
        status: '0',
        flag: false,
      },
    ],
  }
})
// 获取用户列表
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/user/list?pageNum=1&pageSize=10', 'get', () => {
  return {
    total: '561',
    rows: [
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:20',
        updateBy: null,
        updateTime: null,
        remark: '超级管理员',
        params: {},
        userId: '1',
        deptId: '100',
        userName: 'admin',
        nickName: '超级管理员',
        email: '',
        phonenumber: '15010218580',
        linephone: '',
        sex: '1',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/09/a21e6d7a-1e4a-4d1b-8187-410a52d6baf0.jpeg',
        password: '$2a$10$k7YwrNfy3bkC9il48.9u5.zxzT5wKVnOq98/5ukdSk.9VLvTueXuK',
        status: '0',
        delFlag: '0',
        loginIp: '127.0.0.1',
        loginDate: '2021-03-30T19:40:20.000+08:00',
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '100',
          parentId: null,
          ancestors: null,
          deptName: '神华铁路装备有限责任公司',
          orderNum: null,
          deptType: null,
          leader: '',
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '神华铁路装备有限责任公司',
        admin: true,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-03-30 19:40:20',
        updateBy: null,
        updateTime: null,
        remark: '超级管理员-USER',
        params: {},
        userId: '2',
        deptId: '270817555382935578',
        userName: 'JDR',
        nickName: '用户-超管2',
        email: '',
        phonenumber: '15010218582',
        linephone: '',
        sex: '0',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/16/c6ceba96-60ec-4e64-8cd7-82baf4c9b826.jpeg',
        password: '$2a$10$XT5m31/BogfYK/CZdF17RucSHzmny2sorwYizQlnjjhOxWmaelACq',
        status: '0',
        delFlag: '0',
        loginIp: '127.0.0.1',
        loginDate: '2021-03-30T19:40:20.000+08:00',
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '270817555382935578',
          parentId: null,
          ancestors: null,
          deptName: '生产服务中心',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '生产服务中心',
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-04-15 05:37:44',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '3',
        deptId: '113',
        userName: '11592093',
        nickName: '戴雄龙',
        email: '',
        phonenumber: '13847734884',
        linephone: '',
        sex: '0',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/08/1e476983-334c-4757-834d-2cee907f9986.jpeg',
        password: '$2a$10$38QbRitoyRvAdF1dUyE1DedIRI9mdwQlq4cn95egai1b6oiA21Pwu',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '113',
          parentId: null,
          ancestors: null,
          deptName: '综合管理部',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '综合管理部',
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-04-15 05:37:44',
        updateBy: null,
        updateTime: null,
        remark: '',
        params: {},
        userId: '4',
        deptId: '113',
        userName: 'ln',
        nickName: '李娜',
        email: '',
        phonenumber: '15547260712',
        linephone: '',
        sex: '1',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/08/1e476983-334c-4757-834d-2cee907f9986.jpeg',
        password: '$2a$10$38QbRitoyRvAdF1dUyE1DedIRI9mdwQlq4cn95egai1b6oiA21Pwu',
        status: '1',
        delFlag: '0',
        loginIp: '',
        loginDate: '2021-04-15T19:44:23.000+08:00',
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '113',
          parentId: null,
          ancestors: null,
          deptName: '综合管理部',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '综合管理部',
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-04-20 04:45:53',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '5',
        deptId: '128',
        userName: 'cbc',
        nickName: '蔡宝丞',
        email: 'caibaocheng@sjgtw.com',
        phonenumber: '18500386172',
        linephone: '',
        sex: '0',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/08/1e476983-334c-4757-834d-2cee907f9986.jpeg',
        password: '$2a$10$8OdBUwuTAhtjU.h6GsNtLu7FMIFAWdqdlAdJgjhIVtPTl0xLy6zVW',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '128',
          parentId: null,
          ancestors: null,
          deptName: '企业管理与法律事务部',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '企业管理与法律事务部',
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-04-20 04:47:59',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '6',
        deptId: '111',
        userName: 'cwh',
        nickName: '崔蔚华',
        email: 'cuiweihua@sjgtw.com',
        phonenumber: '18132424380',
        linephone: '',
        sex: '0',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/08/1e476983-334c-4757-834d-2cee907f9986.jpeg',
        password: '$2a$10$PfLsm.re1dAQxJulw1YHb.fnfOdrmwVvoSa.AkleqqJ4eft7TkuJ2',
        status: '1',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '111',
          parentId: null,
          ancestors: null,
          deptName: '综合管理部',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '综合管理部',
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-04-20 04:49:01',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '7',
        deptId: '109',
        userName: 'dz',
        nickName: '董卓',
        email: 'dongzhuo@sjgtw.com',
        phonenumber: '13812345678',
        linephone: '',
        sex: '0',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/08/1e476983-334c-4757-834d-2cee907f9986.jpeg',
        password: '$2a$10$syVm1XF/CHe6kJCPoK.7w.V7zzEPEJ5zme58k7cxhrPaE.pmW.JHS',
        status: '1',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '109',
          parentId: null,
          ancestors: null,
          deptName: '采购与物资管理部',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '采购与物资管理部',
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-04-20 04:50:21',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '8',
        deptId: '109',
        userName: 'jhm',
        nickName: '金慧敏',
        email: 'jinhuimin@sjgtw.com',
        phonenumber: '13812345679',
        linephone: '',
        sex: '1',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/08/1e476983-334c-4757-834d-2cee907f9986.jpeg',
        password: '$2a$10$l9oQvKGmbAVdY4ZfN4d/zezsC2gMsPU5biI5eS9F0d16Ip9muqQAi',
        status: '1',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '109',
          parentId: null,
          ancestors: null,
          deptName: '采购与物资管理部',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '采购与物资管理部',
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-04-20 04:51:15',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '9',
        deptId: '118',
        userName: 'dhb',
        nickName: 'dhb',
        email: 'duanhaibing@sjgtw.com',
        phonenumber: '13878945612',
        linephone: '',
        sex: '0',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/08/1e476983-334c-4757-834d-2cee907f9986.jpeg',
        password: '$2a$10$hSIIrTuP40CNvsGawUqpnuI/adTnJvo6tz7WnsqglP.0i3ZocI30e',
        status: '1',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '118',
          parentId: null,
          ancestors: null,
          deptName: '信息化管理部',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '信息化管理部',
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2021-04-27 04:44:26',
        updateBy: null,
        updateTime: null,
        remark: 'ssssssss',
        params: {},
        userId: '10',
        deptId: '100',
        userName: 'ss',
        nickName: 'ss',
        email: '5555555@55.com',
        phonenumber: '15555555555',
        linephone: '',
        sex: '0',
        avatar: 'http://10.1.6.15:10240/chn-energy/2021/06/08/1e476983-334c-4757-834d-2cee907f9986.jpeg',
        password: '$2a$10$UvaDYDarl1syluMf722J9egZNCo64jeHxAmkUXsTt8ff0LDUqNvLu',
        status: '1',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '100',
          parentId: null,
          ancestors: null,
          deptName: '神华铁路装备有限责任公司',
          orderNum: null,
          deptType: null,
          leader: '',
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '神华铁路装备有限责任公司',
        admin: false,
      },
    ],
    code: 200,
    msg: '查询成功',
  }
})
// 切换分页
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/user/list?pageNum=57&pageSize=10', 'get', () => {
  return {
    total: '567',
    rows: [
      {
        searchValue: null,
        createBy: 'rsf身份供应同步',
        createTime: '2023-09-11 17:05:29',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '1368',
        deptId: null,
        userName: '4444',
        nickName: '4444',
        email: 'null',
        phonenumber: 'null',
        linephone: '',
        sex: '1',
        avatar: '',
        password: '',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: null,
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'rsf身份供应同步',
        createTime: '2023-09-12 10:41:30',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '1369',
        deptId: null,
        userName: '5555',
        nickName: '5555',
        email: 'null',
        phonenumber: 'null',
        linephone: '',
        sex: '1',
        avatar: '',
        password: '',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: null,
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'rsf身份供应同步',
        createTime: '2023-09-12 11:19:40',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '1370',
        deptId: null,
        userName: '6666',
        nickName: '6666',
        email: 'null',
        phonenumber: 'null',
        linephone: '',
        sex: '1',
        avatar: '',
        password: '',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: null,
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'rsf身份供应同步',
        createTime: '2023-09-12 11:33:33',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '1371',
        deptId: null,
        userName: '7777',
        nickName: '7777',
        email: 'null',
        phonenumber: 'null',
        linephone: '',
        sex: '1',
        avatar: '',
        password: '',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: null,
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'rsf身份供应同步',
        createTime: '2023-09-12 11:41:23',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '1372',
        deptId: null,
        userName: '8888',
        nickName: '8888',
        email: 'null',
        phonenumber: 'null',
        linephone: '',
        sex: '1',
        avatar: '',
        password: '',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: null,
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'rsf身份供应同步',
        createTime: '2023-09-12 11:51:18',
        updateBy: null,
        updateTime: null,
        remark: null,
        params: {},
        userId: '1373',
        deptId: null,
        userName: '9999',
        nickName: '9999',
        email: 'null',
        phonenumber: 'null',
        linephone: '',
        sex: '1',
        avatar: '',
        password: '',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: null,
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: null,
        admin: false,
      },
      {
        searchValue: null,
        createBy: 'admin',
        createTime: '2023-09-14 14:42:00',
        updateBy: null,
        updateTime: null,
        remark: '无',
        params: {},
        userId: '1374',
        deptId: '270817555382935609',
        userName: 'coco',
        nickName: 'coco',
        email: '572625260@qq.com',
        phonenumber: '18733179708',
        linephone: '12345678',
        sex: '1',
        avatar: '',
        password: '$2a$10$vKeuG7PpjRtY0bOG4sHZ1.285v.782mppkrbwGRkdZnlcqPfMp33S',
        status: '0',
        delFlag: '0',
        loginIp: '',
        loginDate: null,
        dept: {
          searchValue: null,
          createBy: null,
          createTime: null,
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          deptId: '270817555382935609',
          parentId: null,
          ancestors: null,
          deptName: '先进铁路装备研发中心',
          orderNum: null,
          deptType: null,
          leader: null,
          phone: null,
          email: null,
          status: null,
          delFlag: null,
          parentName: null,
          deptNum: null,
          deptCode: null,
          fullName: null,
          children: [],
        },
        roles: [],
        roleIds: null,
        postIds: null,
        deptNum: null,
        deptName: '先进铁路装备研发中心',
        admin: false,
      },
    ],
    code: 200,
    msg: '查询成功',
  }
})
// 搜索
Mock.mock(
  import.meta.env.VITE_BASE_URL +
    '/system/user/list?pageNum=1&pageSize=10&status=0&params[beginTime]=2023-09-10&params[endTime]=2023-09-14',
  'get',
  () => {
    return {
      total: '11',
      rows: [
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-11 14:18:52',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1363',
          deptId: '100',
          userName: 'ceshi01',
          nickName: 'ceshi01',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: {
            searchValue: null,
            createBy: null,
            createTime: null,
            updateBy: null,
            updateTime: null,
            remark: null,
            params: {},
            deptId: '100',
            parentId: null,
            ancestors: null,
            deptName: '神华铁路装备有限责任公司',
            orderNum: null,
            deptType: null,
            leader: '',
            phone: null,
            email: null,
            status: null,
            delFlag: null,
            parentName: null,
            deptNum: null,
            deptCode: null,
            fullName: null,
            children: [],
          },
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: '神华铁路装备有限责任公司',
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-11 14:37:51',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1364',
          deptId: null,
          userName: '1111',
          nickName: '1111',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: null,
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: null,
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-11 15:39:24',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1365',
          deptId: '100',
          userName: 'primeton',
          nickName: 'primeton',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: {
            searchValue: null,
            createBy: null,
            createTime: null,
            updateBy: null,
            updateTime: null,
            remark: null,
            params: {},
            deptId: '100',
            parentId: null,
            ancestors: null,
            deptName: '神华铁路装备有限责任公司',
            orderNum: null,
            deptType: null,
            leader: '',
            phone: null,
            email: null,
            status: null,
            delFlag: null,
            parentName: null,
            deptNum: null,
            deptCode: null,
            fullName: null,
            children: [],
          },
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: '神华铁路装备有限责任公司',
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-11 15:56:46',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1366',
          deptId: null,
          userName: '2222',
          nickName: '2222',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: null,
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: null,
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-11 16:43:52',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1367',
          deptId: null,
          userName: '3333',
          nickName: '3333',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: null,
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: null,
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-11 17:05:29',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1368',
          deptId: null,
          userName: '4444',
          nickName: '4444',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: null,
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: null,
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-12 10:41:30',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1369',
          deptId: null,
          userName: '5555',
          nickName: '5555',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: null,
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: null,
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-12 11:19:40',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1370',
          deptId: null,
          userName: '6666',
          nickName: '6666',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: null,
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: null,
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-12 11:33:33',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1371',
          deptId: null,
          userName: '7777',
          nickName: '7777',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: null,
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: null,
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-09-12 11:41:23',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1372',
          deptId: null,
          userName: '8888',
          nickName: '8888',
          email: 'null',
          phonenumber: 'null',
          linephone: '',
          sex: '1',
          avatar: '',
          password: '',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: null,
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: null,
          admin: false,
        },
      ],
      code: 200,
      msg: '查询成功',
    }
  },
)
// 获取树
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/dept/treeselect', 'get', () => {
  return {
    msg: '操作成功',
    code: 200,
    data: [
      {
        id: '100',
        label: '神华铁路装备有限责任公司',
        children: [
          {
            id: '270817555382935564',
            label: '公司领导',
          },
          {
            id: '270817555382935608',
            label: '智慧科技公司',
          },
          {
            id: '110',
            label: '综合部',
          },
          {
            id: '124',
            label: '党建工作部（党委办公室）',
          },
          {
            id: '125',
            label: '组织人事部（人力资源部）',
          },
          {
            id: '126',
            label: '纪委办公室',
          },
          {
            id: '127',
            label: '科技发展部',
          },
          {
            id: '114',
            label: '财务部',
          },
          {
            id: '128',
            label: '企业管理与法律事务部',
          },
          {
            id: '129',
            label: '安全环保部',
          },
          {
            id: '130',
            label: '审计部',
          },
          {
            id: '131',
            label: '工会工作部',
          },
          {
            id: '122',
            label: '生产技术部',
          },
          {
            id: '109',
            label: '采购与物资管理部',
          },
          {
            id: '132',
            label: '设备工程部',
          },
          {
            id: '118',
            label: '信息化管理部',
          },
          {
            id: '133',
            label: '调度部（5T监控中心）',
          },
          {
            id: '134',
            label: '能源运输杂志社（新闻宣传中心）',
          },
          {
            id: '135',
            label: '物流中心',
          },
          {
            id: '136',
            label: '教育培训中心（职业技能鉴定站）',
          },
          {
            id: '137',
            label: '质量验收中心',
          },
          {
            id: '313',
            label: '智慧科技公司',
          },
          {
            id: '102',
            label: '沧州机车车辆维修分公司',
            children: [
              {
                id: '270817555382935568',
                label: '企业管理部',
              },
              {
                id: '270817555382935569',
                label: '分公司分管领导',
              },
              {
                id: '270817555382935577',
                label: '人力资源部',
              },
              {
                id: '270817555382935578',
                label: '生产服务中心',
              },
              {
                id: '270817555382935579',
                label: '厂修车间',
              },
              {
                id: '270817555382935580',
                label: '段修车间',
              },
              {
                id: '111',
                label: '综合管理部',
              },
              {
                id: '210',
                label: '党建工作部（纪委办）',
              },
              {
                id: '211',
                label: '纪检监察部',
              },
              {
                id: '115',
                label: '财务部',
              },
              {
                id: '212',
                label: '企业管理部',
              },
              {
                id: '119',
                label: '安全环保部',
              },
              {
                id: '213',
                label: '机车技术部',
              },
              {
                id: '214',
                label: '车辆技术部',
              },
              {
                id: '215',
                label: '车辆生产部',
              },
              {
                id: '216',
                label: '机车营销售后服务部',
              },
              {
                id: '217',
                label: '机车整备车间',
              },
              {
                id: '218',
                label: '机车部件车间',
              },
              {
                id: '219',
                label: '质量管理中心',
              },
              {
                id: '220',
                label: '机车组装车间',
              },
              {
                id: '221',
                label: '质量验收中心沧州机车验收室',
              },
              {
                id: '222',
                label: '质量验收中心沧州车辆验收室',
              },
            ],
          },
          {
            id: '103',
            label: '榆林车辆维修分公司',
            children: [
              {
                id: '270817555382935570',
                label: '分公司分管领导',
              },
              {
                id: '270817555382935581',
                label: '生产技术部',
              },
              {
                id: '270817555382935582',
                label: '生产服务中心',
              },
              {
                id: '270817555382935583',
                label: '质量验收中心榆林验收室',
              },
              {
                id: '112',
                label: '综合管理部',
              },
              {
                id: '167',
                label: '企业管理部',
              },
              {
                id: '168',
                label: '人力资源部',
              },
              {
                id: '169',
                label: '党建工作部（纪委办）',
              },
              {
                id: '170',
                label: '纪检监察部',
              },
              {
                id: '116',
                label: '财务部',
              },
              {
                id: '171',
                label: '安全环保部',
              },
              {
                id: '172',
                label: '安全监察应急救援中心',
              },
              {
                id: '173',
                label: '材料供应中心',
              },
              {
                id: '174',
                label: '调度中心',
              },
              {
                id: '175',
                label: '质量检查中心',
              },
              {
                id: '176',
                label: '段修车间',
              },
              {
                id: '177',
                label: '动态检测车间',
              },
              {
                id: '120',
                label: '神木北运用车间',
              },
              {
                id: '178',
                label: '黄羊城运用车间',
              },
              {
                id: '179',
                label: '朱盖塔运用车间',
              },
              {
                id: '180',
                label: '燕家塔运用车间',
              },
              {
                id: '181',
                label: '厂修车间',
              },
            ],
          },
          {
            id: '104',
            label: '包头车辆维修分公司',
            children: [
              {
                id: '270817555382935571',
                label: '分公司分管领导',
              },
              {
                id: '270817555382935584',
                label: '万水泉南场运用车间',
              },
              {
                id: '270817555382935586',
                label: '生产服务中心',
              },
              {
                id: '113',
                label: '综合管理部',
              },
              {
                id: '199',
                label: '党建工作部（纪委办）',
              },
              {
                id: '117',
                label: '财务部',
              },
              {
                id: '200',
                label: '人力资源部',
              },
              {
                id: '123',
                label: '生产技术部',
              },
              {
                id: '121',
                label: '安全环保部',
              },
              {
                id: '201',
                label: '企业管理部',
              },
              {
                id: '202',
                label: '质量验收中心包头验收室',
              },
              {
                id: '203',
                label: '调度中心',
              },
              {
                id: '204',
                label: '质检中心',
              },
              {
                id: '205',
                label: '物资供应中心',
              },
              {
                id: '206',
                label: '段修车间',
              },
              {
                id: '207',
                label: '万水泉北场运用车间',
              },
              {
                id: '208',
                label: '动态检测车间',
              },
              {
                id: '209',
                label: '海勒斯壕南运用车间',
              },
            ],
          },
          {
            id: '105',
            label: '肃宁车辆维修分公司',
            children: [
              {
                id: '270817555382935572',
                label: '分公司分管领导',
              },
              {
                id: '270817555382935588',
                label: '生产服务中心',
              },
              {
                id: '182',
                label: '综合管理部',
              },
              {
                id: '183',
                label: '党建工作部（纪委办）',
              },
              {
                id: '184',
                label: '质量验收中心肃宁验收室',
              },
              {
                id: '185',
                label: '财务部',
              },
              {
                id: '186',
                label: '人力资源部',
              },
              {
                id: '198',
                label: '人力资源部',
              },
              {
                id: '187',
                label: '生产技术部',
              },
              {
                id: '188',
                label: '安全环保部',
              },
              {
                id: '189',
                label: '企业管理部',
              },
              {
                id: '190',
                label: '调度中心',
              },
              {
                id: '191',
                label: '质检验收中心',
              },
              {
                id: '192',
                label: '物资供应中心',
              },
              {
                id: '193',
                label: '段修车间',
              },
              {
                id: '194',
                label: '动态检测车间',
              },
              {
                id: '195',
                label: '神池南运用车间',
              },
              {
                id: '196',
                label: '肃宁运用车间',
              },
              {
                id: '197',
                label: '黄骅港运用车间',
              },
            ],
          },
          {
            id: '106',
            label: '内蒙古分公司',
            children: [
              {
                id: '270817555382935573',
                label: '分公司分管领导',
              },
              {
                id: '270817555382935589',
                label: '财务部',
              },
              {
                id: '270817555382935590',
                label: '人力资源部',
              },
              {
                id: '223',
                label: '综合管理部',
              },
              {
                id: '224',
                label: '企业管理部',
              },
              {
                id: '225',
                label: '党建工作部（纪委办）',
              },
              {
                id: '226',
                label: '纪检监察部',
              },
              {
                id: '227',
                label: '产权财务部',
              },
              {
                id: '228',
                label: '运营管理部',
              },
              {
                id: '229',
                label: '市场贸易部',
              },
              {
                id: '230',
                label: '设备工程技术部',
              },
              {
                id: '231',
                label: '安全生产经营部',
              },
              {
                id: '232',
                label: '银川业务部',
              },
              {
                id: '233',
                label: '乌海业务部',
              },
              {
                id: '234',
                label: '包头业务部',
              },
              {
                id: '235',
                label: '东胜业务部',
              },
              {
                id: '236',
                label: '神木北业务部',
              },
              {
                id: '237',
                label: '薛家湾业务部',
              },
              {
                id: '238',
                label: '呼和业务部',
              },
              {
                id: '239',
                label: '太原业务部',
              },
              {
                id: '240',
                label: '肃宁业务部',
              },
              {
                id: '241',
                label: '北京业务部',
              },
              {
                id: '242',
                label: '天津业务部',
              },
              {
                id: '243',
                label: '神港业务部',
              },
              {
                id: '244',
                label: '天津港口贸易业务部',
              },
              {
                id: '245',
                label: '黄骅港业务部',
              },
              {
                id: '246',
                label: '唐山业务部',
              },
              {
                id: '247',
                label: '秦皇岛业务部',
              },
              {
                id: '248',
                label: '东营业务部',
              },
              {
                id: '249',
                label: '南郊货场',
              },
              {
                id: '250',
                label: '沙胡同货场',
              },
            ],
          },
          {
            id: '107',
            label: '陕西分公司',
            children: [
              {
                id: '270817555382935574',
                label: '分公司分管领导',
              },
              {
                id: '270817555382935591',
                label: '生产服务中心',
              },
              {
                id: '270817555382935592',
                label: '人力资源部',
              },
              {
                id: '153',
                label: '综合管理部',
              },
              {
                id: '154',
                label: '党建工作部（纪委办）',
              },
              {
                id: '155',
                label: '纪检监察部',
              },
              {
                id: '156',
                label: '财务部',
              },
              {
                id: '157',
                label: '经营开发部',
              },
              {
                id: '158',
                label: '技术部',
              },
              {
                id: '159',
                label: '安全环保部',
              },
              {
                id: '160',
                label: '企业管理部',
              },
              {
                id: '161',
                label: '设备技术部',
              },
              {
                id: '162',
                label: '质检中心',
              },
              {
                id: '163',
                label: '神木北车轮车间',
              },
              {
                id: '164',
                label: '神木北设备车间',
              },
              {
                id: '165',
                label: '沧州再制造基地',
              },
              {
                id: '166',
                label: '包头再制造基地',
              },
            ],
          },
          {
            id: '101',
            label: '轨道机械化维护分公司（神维分公司）',
            children: [
              {
                id: '270817555382935553',
                label: '生产设备技术部',
              },
              {
                id: '270817555382935554',
                label: '企业管理部',
              },
              {
                id: '270817555382935556',
                label: '生产服务中心',
              },
              {
                id: '270817555382935575',
                label: '分公司分管领导',
              },
              {
                id: '270817555382935593',
                label: '质量验收中心工务机械验收室',
              },
              {
                id: '138',
                label: '综合管理部',
              },
              {
                id: '139',
                label: '党建工作部（纪委办）',
              },
              {
                id: '140',
                label: '人力资源部',
              },
              {
                id: '141',
                label: '纪委办公室',
              },
              {
                id: '142',
                label: '财务部',
              },
              {
                id: '143',
                label: '安全环保部',
              },
              {
                id: '144',
                label: '技术设备部',
              },
              {
                id: '145',
                label: '对外项目作业中心',
              },
              {
                id: '146',
                label: '物资供应中心',
              },
              {
                id: '147',
                label: '生产调度部',
              },
              {
                id: '148',
                label: '肃宁工务机械段',
                children: [
                  {
                    id: '270817555382935595',
                    label: '线路清筛一车间',
                  },
                  {
                    id: '270817555382935596',
                    label: '线路清筛二车间',
                  },
                  {
                    id: '270817555382935597',
                    label: '线路维修车间',
                  },
                  {
                    id: '270817555382935598',
                    label: '道岔维修车间',
                  },
                  {
                    id: '270817555382935599',
                    label: '段领导',
                  },
                  {
                    id: '268',
                    label: '生产调度部',
                  },
                  {
                    id: '269',
                    label: '安全质量环保部',
                  },
                  {
                    id: '270',
                    label: '经营管理部',
                  },
                  {
                    id: '271',
                    label: '设备技术部',
                  },
                  {
                    id: '272',
                    label: '综合管理部',
                  },
                  {
                    id: '273',
                    label: '党建工作部',
                  },
                ],
              },
              {
                id: '149',
                label: '大型机械维修段',
                children: [
                  {
                    id: '270817555382935602',
                    label: '党建工作部',
                  },
                  {
                    id: '270817555382935603',
                    label: '经营管理部',
                  },
                  {
                    id: '270817555382935604',
                    label: '维修车间',
                  },
                  {
                    id: '270817555382935605',
                    label: '段领导',
                  },
                  {
                    id: '274',
                    label: '安全质量环保部',
                  },
                  {
                    id: '275',
                    label: '生产调度部',
                    children: [
                      {
                        id: '278',
                        label: '检修一工区',
                      },
                      {
                        id: '279',
                        label: '检修二工区',
                      },
                    ],
                  },
                  {
                    id: '276',
                    label: '设备技术部',
                  },
                  {
                    id: '277',
                    label: '综合管理部',
                  },
                ],
              },
              {
                id: '150',
                label: '包头工务机械段',
                children: [
                  {
                    id: '270817555382935601',
                    label: '段领导',
                  },
                  {
                    id: '280',
                    label: '生产调度部',
                  },
                  {
                    id: '281',
                    label: '设备技术部',
                  },
                  {
                    id: '282',
                    label: '安全质量环保部',
                  },
                  {
                    id: '283',
                    label: '经营管理部',
                  },
                  {
                    id: '284',
                    label: '综合管理部',
                  },
                  {
                    id: '285',
                    label: '党建工作部',
                  },
                  {
                    id: '286',
                    label: '线路维修车间',
                  },
                  {
                    id: '287',
                    label: '钢轨打磨车间',
                  },
                ],
              },
              {
                id: '151',
                label: '府谷工务机械段',
                children: [
                  {
                    id: '270817555382935594',
                    label: '段领导',
                  },
                  {
                    id: '288',
                    label: '经营管理部',
                  },
                  {
                    id: '289',
                    label: '生产调度部',
                  },
                  {
                    id: '290',
                    label: '安全质量环保部',
                  },
                  {
                    id: '291',
                    label: '设备技术部',
                  },
                  {
                    id: '292',
                    label: '综合管理部',
                  },
                  {
                    id: '293',
                    label: '党建工作部',
                  },
                  {
                    id: '294',
                    label: '线路清筛一车间',
                  },
                  {
                    id: '295',
                    label: '线路清筛二车间',
                  },
                  {
                    id: '296',
                    label: '隧道清筛车间',
                  },
                  {
                    id: '297',
                    label: '线路维修车间',
                  },
                  {
                    id: '298',
                    label: '道岔维修车间',
                  },
                ],
              },
              {
                id: '152',
                label: '准格尔工务机械段',
                children: [
                  {
                    id: '270817555382935600',
                    label: '段领导',
                  },
                  {
                    id: '299',
                    label: '生产调度部',
                  },
                  {
                    id: '300',
                    label: '设备技术部',
                  },
                  {
                    id: '301',
                    label: '安全质量环保部',
                  },
                  {
                    id: '302',
                    label: '经营管理部',
                  },
                  {
                    id: '303',
                    label: '综合管理部',
                  },
                  {
                    id: '304',
                    label: '党建工作部',
                  },
                  {
                    id: '305',
                    label: '轨道维护设计室',
                  },
                  {
                    id: '306',
                    label: '线路清筛一车间',
                  },
                  {
                    id: '307',
                    label: '线路清筛二车间',
                  },
                  {
                    id: '308',
                    label: '道岔维修车间',
                  },
                  {
                    id: '309',
                    label: '线路维修车间',
                  },
                  {
                    id: '310',
                    label: '换轨作业车间',
                  },
                ],
              },
            ],
          },
          {
            id: '108',
            label: '准格尔分公司',
            children: [
              {
                id: '270817555382935557',
                label: '综合管理部',
              },
              {
                id: '270817555382935558',
                label: '生产服务中心',
              },
              {
                id: '270817555382935559',
                label: '人力资源部',
              },
              {
                id: '270817555382935560',
                label: '验收科',
              },
              {
                id: '270817555382935576',
                label: '分公司分管领导',
              },
              {
                id: '270817555382935606',
                label: '企业管理部',
              },
              {
                id: '251',
                label: '党建工作部（纪委办）',
              },
              {
                id: '252',
                label: '财务部',
              },
              {
                id: '253',
                label: '职工教育科',
              },
              {
                id: '254',
                label: '生产技术部',
              },
              {
                id: '255',
                label: '安全环保部',
              },
              {
                id: '256',
                label: '验收室',
              },
              {
                id: '257',
                label: '段修车间',
              },
              {
                id: '258',
                label: '动态检测车间',
              },
              {
                id: '259',
                label: '点岱沟列检作业场',
              },
              {
                id: '260',
                label: '二道河列检作业场',
              },
              {
                id: '261',
                label: '丹洲营列检作业场',
              },
              {
                id: '262',
                label: '薛家湾列检作业场',
              },
              {
                id: '263',
                label: '南坪列检',
              },
              {
                id: '264',
                label: '九苏木列检',
              },
              {
                id: '265',
                label: '唐公塔列检',
              },
              {
                id: '266',
                label: 'TFDS维修组',
              },
              {
                id: '267',
                label: 'THDS维修组',
              },
            ],
          },
        ],
      },
      {
        id: '270817555382935609',
        label: '先进铁路装备研发中心',
      },
    ],
  }
})
// 点击获取部门
Mock.mock(
  import.meta.env.VITE_BASE_URL + '/system/user/list?pageNum=1&pageSize=10&deptId=270817555382935564',
  'get',
  () => {
    return {
      total: '3',
      rows: [
        {
          searchValue: null,
          createBy: 'admin',
          createTime: '2022-01-10 17:13:07',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '573',
          deptId: '270817555382935564',
          userName: '20020551',
          nickName: '康凤伟',
          email: '',
          phonenumber: '',
          linephone: '58133266',
          sex: '0',
          avatar: '',
          password: '$2a$10$FAEay38Wlf9oSyoJB5KWzO2yAQgQz.pQQyzPvBMk5kEsAIHH7pkde',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: {
            searchValue: null,
            createBy: null,
            createTime: null,
            updateBy: null,
            updateTime: null,
            remark: null,
            params: {},
            deptId: '270817555382935564',
            parentId: null,
            ancestors: null,
            deptName: '公司领导',
            orderNum: null,
            deptType: null,
            leader: null,
            phone: null,
            email: null,
            status: null,
            delFlag: null,
            parentName: null,
            deptNum: null,
            deptCode: null,
            fullName: null,
            children: [],
          },
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: '公司领导',
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'admin',
          createTime: '2022-01-10 17:13:07',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '575',
          deptId: '270817555382935564',
          userName: '11250007',
          nickName: '宋斐云',
          email: '',
          phonenumber: '',
          linephone: '58133285',
          sex: '0',
          avatar: '',
          password: '$2a$10$FAEay38Wlf9oSyoJB5KWzO2yAQgQz.pQQyzPvBMk5kEsAIHH7pkde',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: {
            searchValue: null,
            createBy: null,
            createTime: null,
            updateBy: null,
            updateTime: null,
            remark: null,
            params: {},
            deptId: '270817555382935564',
            parentId: null,
            ancestors: null,
            deptName: '公司领导',
            orderNum: null,
            deptType: null,
            leader: null,
            phone: null,
            email: null,
            status: null,
            delFlag: null,
            parentName: null,
            deptNum: null,
            deptCode: null,
            fullName: null,
            children: [],
          },
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: '公司领导',
          admin: false,
        },
        {
          searchValue: null,
          createBy: 'rsf身份供应同步',
          createTime: '2023-04-17 13:33:27',
          updateBy: null,
          updateTime: null,
          remark: null,
          params: {},
          userId: '1249',
          deptId: '270817555382935564',
          userName: '11655003',
          nickName: '惠舒清',
          email: '',
          phonenumber: '',
          linephone: '',
          sex: '0',
          avatar: '',
          password: '$2a$10$VPzwKAk1o3gIBTzd9dECculNCZoxLhX.rMyu2weIqkt3189gA4I6G',
          status: '0',
          delFlag: '0',
          loginIp: '',
          loginDate: null,
          dept: {
            searchValue: null,
            createBy: null,
            createTime: null,
            updateBy: null,
            updateTime: null,
            remark: null,
            params: {},
            deptId: '270817555382935564',
            parentId: null,
            ancestors: null,
            deptName: '公司领导',
            orderNum: null,
            deptType: null,
            leader: null,
            phone: null,
            email: null,
            status: null,
            delFlag: null,
            parentName: null,
            deptNum: null,
            deptCode: null,
            fullName: null,
            children: [],
          },
          roles: [],
          roleIds: null,
          postIds: null,
          deptNum: null,
          deptName: '公司领导',
          admin: false,
        },
      ],
      code: 200,
      msg: '查询成功',
    }
  },
)
// 切换
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/user/changeStatus', 'put', () => {
  return { msg: '操作成功', code: 200 }
})
// 新增
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/user', 'post', () => {
  return { msg: '操作成功', code: 200 }
})
// 新增
Mock.mock(import.meta.env.VITE_BASE_URL + '/system/config/configKey/sys.user.initPassword', 'get', () => {
  return { msg: 'Jsc!@#2021ce', code: 200 }
})
